<?php /* Smarty version 2.6.18, created on 2011-06-09 08:12:25
         compiled from spread.edit.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'fetch', 'spread.edit.html', 2, false),array('function', 'html_options', 'spread.edit.html', 33, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php echo smarty_function_fetch(array('file' => "../scripts/date.js"), $this);?>

<div id="currentPosition">
	<p><?php echo $this->_tpl_vars['_your_current_position']; ?>
 <?php echo $this->_tpl_vars['_ads']; ?>
 &raquo; <?php echo $this->_tpl_vars['_keyword_adwords']; ?>
</p>
</div>
<div id="rightTop"> 
    <h3><?php echo $this->_tpl_vars['_keyword_adwords']; ?>
</h3> 
    <ul class="subnav">
		<li><a href="spread.php"><span><?php echo $this->_tpl_vars['_management']; ?>
</span></a></li>
		<li><a class="btn1" href="spread.php?do=edit"><span><?php echo $this->_tpl_vars['_add']; ?>
</span></a></li>
    </ul>
</div>
<div class="info">
  <form action="" method="post" id="EditFrm" name="edit_frm">
  <input type="hidden" name="id" value="<?php echo $this->_tpl_vars['item']['id']; ?>
" />
  <input type="hidden" name="page" value="<?php echo $_GET['page']; ?>
" />
  <input type="hidden" name="do" value="spread" />
    <table class="infoTable">
      <tr>
        <th class="paddingT15"> <?php echo $this->_tpl_vars['_words']; ?>
<?php echo $this->_tpl_vars['_colon']; ?>
</th>
        <td class="paddingT15 wordSpacing5">          
		<input class="infoTableInput2" name="data[spread][keyword_name]" value="<?php echo $this->_tpl_vars['item']['keyword_name']; ?>
" /><label class="field_notice"><?php echo $this->_tpl_vars['_show_name_n']; ?>
</label>        </td>
      </tr>
      <tr>
        <th class="paddingT15"> <?php echo $this->_tpl_vars['_title']; ?>
<?php echo $this->_tpl_vars['_colon']; ?>
</th>
        <td class="paddingT15 wordSpacing5">          
		<input class="infoTableInput2" name="data[spread][title]" value="<?php echo $this->_tpl_vars['item']['title']; ?>
" /><label class="field_notice"><?php echo $this->_tpl_vars['_show_name_n']; ?>
</label>        </td>
      </tr>
      <tr>
        <th class="paddingT15"> <?php echo $this->_tpl_vars['_show_status']; ?>
<?php echo $this->_tpl_vars['_colon']; ?>
</th>
        <td class="paddingT15 wordSpacing5">          
		<select class="querySelect" name="data[spread][status]" id="Status">
					<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['CheckStatus'],'selected' => $this->_tpl_vars['item']['status']), $this);?>

				</select></td>
      </tr>
      <tr>
        <th class="paddingT15"> <?php echo $this->_tpl_vars['_link_url']; ?>
</th>
        <td class="paddingT15 wordSpacing5">          
		<input class="infoTableInput2" name="data[spread][target_url]" value="<?php echo $this->_tpl_vars['item']['target_url']; ?>
" /></td>
      </tr>
      <tr>
        <th class="paddingT15">  <?php echo $this->_tpl_vars['_expire_date']; ?>
<?php echo $this->_tpl_vars['_colon']; ?>
</th>
        <td class="paddingT15 wordSpacing5"><input name="exp_date" id="date1" value="<?php echo $this->_tpl_vars['item']['exp_date']; ?>
" readonly/><span class="btn_calendar" id="calendar-date1"></span></td>
      </tr>
      <tr>
        <th class="paddingT15"> <?php echo $this->_tpl_vars['_content']; ?>
</th>
        <td class="paddingT15 wordSpacing5">
        <textarea style="width:550px;height:50px;" name="data[spread][content]" class="mceEditor"><?php echo $this->_tpl_vars['item']['content']; ?>
</textarea>
        </td>
      </tr>
      <tr>
        <th></th>
        <td class="ptb20">
			<input class="formbtn" type="submit" name="save" value="<?php echo $this->_tpl_vars['_save']; ?>
" />
		</td>
      </tr>
    </table>
  </form>
</div>
<?php echo '
<script>
Calendar.setup({
	trigger    : "calendar-date1",
	animation  : false,
	inputField : "date1",
	onSelect   : function() { this.hide() }
});
</script>
'; ?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>